namespace ApplicationCore
{
    partial class BatchView
    {
        public string FullName
        {
            get
            {
                return System.String.Join("-", this.Name, this.Number, this.Date.ToString("M/d/yyyy"));
            }
        }

        public override bool Equals(object obj)
        {
            if (obj == null)
                return false;

            BatchView ev = obj as BatchView;
            if (ev == null)
                return false;

            return this.UId == ev.UId;
        }
    }

    partial class ActivityView
    {
        public override bool Equals(object obj)
        {
            if (obj == null)
                return false;

            ActivityView av = obj as ActivityView;
            if (av == null)
                return false;

            return this.EnzymeUid == av.EnzymeUid
                && this.ProtocolUId == av.ProtocolUId
                && this.MaterialUId == av.MaterialUId;
        }
    }
}
